//
//  ActivityDetailView.m
//  豆瓣YHY
//
//  Created by dllo on 15/10/28.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "ActivityDetailView.h"
#import "ActivityDetaViewController.h"
@implementation ActivityDetailView
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self zz];
    }
    return self;
}

- (void)zz{
    self.titleLabl2 = [[UILabel alloc]initWithFrame:CGRectMake(10, 64, 280,50)];
    // self.titleLabl2.backgroundColor = [UIColor blueColor];
    self.titleLabl2.text = @"";
    [self addSubview:self.titleLabl2];
    
    
    self.headImageView2 = [[UIImageView alloc]initWithFrame:CGRectMake(25, 120, 120, 170)];
    self.headImageView2.backgroundColor = [UIColor yellowColor];
    [self addSubview:self.headImageView2];
 //3
   //3展览类型
    self.category_name = [[UILabel alloc]initWithFrame:CGRectMake(190, 200, 180, 20)];
   // self.category_name.backgroundColor = [UIColor blueColor];
    self.category_name.text = @"";
    [self addSubview:self.category_name];
    
    UIImageView *imageView4 =[[UIImageView alloc]initWithFrame:CGRectMake(160, 200, 20, 20)];
    [imageView4 setImage:[UIImage imageNamed:@"icon_catalog.png"]];
    [self addSubview:imageView4];
 //地址
    self.address = [[UILabel alloc]initWithFrame:CGRectMake(190, 240, 180, 20)];
    self.address.backgroundColor = [UIColor blueColor];
    self.address.text = @"";
    [self addSubview:self.address];
    
    UIImageView *imageView3 =[[UIImageView alloc]initWithFrame:CGRectMake(160, 240, 20, 20)];
    [imageView3 setImage:[UIImage imageNamed:@"icon_spot.png"]];
    [self addSubview:imageView3];
//    
// 1
    self.timeLable2 = [[UILabel alloc]initWithFrame:CGRectMake(190, 120, 180, 20)];
    self.timeLable2.backgroundColor = [UIColor blueColor];
    [self addSubview:self.timeLable2];

    
    
    
    UIImageView *imageView2 =[[UIImageView alloc]initWithFrame:CGRectMake(160, 120, 20, 20)];
    [imageView2 setImage:[UIImage imageNamed:@"icon_date.png"]];
    [self addSubview:imageView2];
    
// 第2个
    self.peopleLabel2 = [[UILabel alloc]initWithFrame:CGRectMake(190, 160, 180, 20)];
    self.peopleLabel2.backgroundColor = [UIColor blueColor];
    [self addSubview:self.peopleLabel2];
    
    
    UIImageView *imageView1 =[[UIImageView alloc]initWithFrame:CGRectMake(160, 160, 20, 20)];
    [imageView1 setImage:[UIImage imageNamed:@"icon_sponsor_blue.png"]];
    [self addSubview:imageView1];
    
    
    //活动介绍
    UIScrollView *scroll = [[UIScrollView alloc]initWithFrame:CGRectMake(25, 350, 325, 200)];
    [self addSubview:scroll];
    scroll.backgroundColor = [UIColor greenColor];
    scroll.contentSize = CGSizeMake(0,1000);
    UILabel *activityintroduce = [[UILabel alloc]initWithFrame:CGRectMake(25, 0, 100, 60)];
    activityintroduce.text = @"活动介绍";
    activityintroduce.font = [UIFont fontWithName:@"Helvetica-Bold" size:23];
    [self addSubview:activityintroduce];
    
    self.contentLabel2 =[[UILabel alloc]initWithFrame:[UIScreen mainScreen].bounds];
    //self.contentLabel2.text = @"sss";
    self.contentLabel2.backgroundColor = [UIColor blueColor];
    [scroll addSubview:self.contentLabel2];
    
    
    
}





/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
